package com.fashiontextile.admin.feign;

import com.fashiontextile.admin.entity.Dict;
import com.fashiontextile.admin.feign.fallback.AdminClientFallbackFactory;
import com.fashiontextile.common.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "fs-admin", fallbackFactory = AdminClientFallbackFactory.class)
public interface AdminClient {
    @GetMapping("/dict/id/{did}")
    R<Dict> selectDict(@PathVariable("did") Long did);
}
